package com.saver.service;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

/**
 * Created by HGonzales.
 */
public class SMSServiceReceiver extends BroadcastReceiver {

    @Override
    public void onReceive(Context context, Intent intent) {
        if (!SMSListenerService.isRunning()) {
            Intent serviceIntent = new Intent(context, SMSListenerService.class);
            context.startService(serviceIntent);
        }
    }
}
